package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiRequestBusChanceData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestBusChanceData   {
  @JsonProperty("pageSize")
  private Integer pageSize = null;

  @JsonProperty("index")
  private Integer index = null;

  @JsonProperty("searchKey")
  private String searchKey = null;

  /**
   * 业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版
   */
  public enum BusTypeEnum {
    RZRQ("BUS_RZRQ"),
    
    GGQQ("BUS_GGQQ"),
    
    HGT("BUS_HGT"),
    
    SGT("BUS_SGT"),
    
    CYB("BUS_CYB"),
    
    OTC("BUS_OTC"),
    
    KCB("BUS_KCB");

    private String value;

    BusTypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static BusTypeEnum fromValue(String text) {
      for (BusTypeEnum b : BusTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("busType")
  private BusTypeEnum busType = null;

  @JsonProperty("isOpen")
  private Boolean isOpen = null;

  @JsonProperty("custLevelSearch")
  private Integer custLevelSearch = null;

  @JsonProperty("relationTypeSearch")
  private Integer relationTypeSearch = null;

  @JsonProperty("isServiceSearch")
  private Boolean isServiceSearch = null;

  /**
   * 排序：总资产、资金余额、周转率、开户日期
   */
  public enum SortByEnum {
    TOTAL_ASSET("TOTAL_ASSET"),
    
    AVAILABLE_ASSET("AVAILABLE_ASSET"),
    
    TURNOVER_RATE("TURNOVER_RATE"),
    
    OPEN_DATE("OPEN_DATE");

    private String value;

    SortByEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static SortByEnum fromValue(String text) {
      for (SortByEnum b : SortByEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("sortBy")
  private SortByEnum sortBy = null;

  /**
   * 排序方向，升序或降序
   */
  public enum SortDirectionEnum {
    ASC("ASC"),
    
    DESC("DESC");

    private String value;

    SortDirectionEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static SortDirectionEnum fromValue(String text) {
      for (SortDirectionEnum b : SortDirectionEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("sortDirection")
  private SortDirectionEnum sortDirection = null;

  public ApiRequestBusChanceData pageSize(Integer pageSize) {
    this.pageSize = pageSize;
    return this;
  }

  /**
   * 分页查询的一页记录数，默认为20
   * @return pageSize
  **/
  @ApiModelProperty(example = "20", value = "分页查询的一页记录数，默认为20")


  public Integer getPageSize() {
    return pageSize;
  }

  public void setPageSize(Integer pageSize) {
    this.pageSize = pageSize;
  }

  public ApiRequestBusChanceData index(Integer index) {
    this.index = index;
    return this;
  }

  /**
   * 页码数，第一页为0
   * @return index
  **/
  @ApiModelProperty(example = "1", value = "页码数，第一页为0")


  public Integer getIndex() {
    return index;
  }

  public void setIndex(Integer index) {
    this.index = index;
  }

  public ApiRequestBusChanceData searchKey(String searchKey) {
    this.searchKey = searchKey;
    return this;
  }

  /**
   * 搜索关键字
   * @return searchKey
  **/
  @ApiModelProperty(example = "123456", value = "搜索关键字")


  public String getSearchKey() {
    return searchKey;
  }

  public void setSearchKey(String searchKey) {
    this.searchKey = searchKey;
  }

  public ApiRequestBusChanceData busType(BusTypeEnum busType) {
    this.busType = busType;
    return this;
  }

  /**
   * 业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版
   * @return busType
  **/
  @ApiModelProperty(example = "BUS_RZRQ", value = "业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版")


  public BusTypeEnum getBusType() {
    return busType;
  }

  public void setBusType(BusTypeEnum busType) {
    this.busType = busType;
  }

  public ApiRequestBusChanceData isOpen(Boolean isOpen) {
    this.isOpen = isOpen;
    return this;
  }

  /**
   * 开通/未开通
   * @return isOpen
  **/
  @ApiModelProperty(example = "false", value = "开通/未开通")


  public Boolean isIsOpen() {
    return isOpen;
  }

  public void setIsOpen(Boolean isOpen) {
    this.isOpen = isOpen;
  }

  public ApiRequestBusChanceData custLevelSearch(Integer custLevelSearch) {
    this.custLevelSearch = custLevelSearch;
    return this;
  }

  /**
   * 客户级别：1一级，2二级，3三级，4四级，5五级
   * @return custLevelSearch
  **/
  @ApiModelProperty(example = "1", value = "客户级别：1一级，2二级，3三级，4四级，5五级")


  public Integer getCustLevelSearch() {
    return custLevelSearch;
  }

  public void setCustLevelSearch(Integer custLevelSearch) {
    this.custLevelSearch = custLevelSearch;
  }

  public ApiRequestBusChanceData relationTypeSearch(Integer relationTypeSearch) {
    this.relationTypeSearch = relationTypeSearch;
    return this;
  }

  /**
   * 1-服务关系;2-签约关系;10-开发关系(默认开发关系)
   * @return relationTypeSearch
  **/
  @ApiModelProperty(example = "10", value = "1-服务关系;2-签约关系;10-开发关系(默认开发关系)")


  public Integer getRelationTypeSearch() {
    return relationTypeSearch;
  }

  public void setRelationTypeSearch(Integer relationTypeSearch) {
    this.relationTypeSearch = relationTypeSearch;
  }

  public ApiRequestBusChanceData isServiceSearch(Boolean isServiceSearch) {
    this.isServiceSearch = isServiceSearch;
    return this;
  }

  /**
   * 是否服务（已服务/未服务）
   * @return isServiceSearch
  **/
  @ApiModelProperty(example = "false", value = "是否服务（已服务/未服务）")


  public Boolean isIsServiceSearch() {
    return isServiceSearch;
  }

  public void setIsServiceSearch(Boolean isServiceSearch) {
    this.isServiceSearch = isServiceSearch;
  }

  public ApiRequestBusChanceData sortBy(SortByEnum sortBy) {
    this.sortBy = sortBy;
    return this;
  }

  /**
   * 排序：总资产、资金余额、周转率、开户日期
   * @return sortBy
  **/
  @ApiModelProperty(example = "TOTAL_ASSE", value = "排序：总资产、资金余额、周转率、开户日期")


  public SortByEnum getSortBy() {
    return sortBy;
  }

  public void setSortBy(SortByEnum sortBy) {
    this.sortBy = sortBy;
  }

  public ApiRequestBusChanceData sortDirection(SortDirectionEnum sortDirection) {
    this.sortDirection = sortDirection;
    return this;
  }

  /**
   * 排序方向，升序或降序
   * @return sortDirection
  **/
  @ApiModelProperty(example = "DESC", value = "排序方向，升序或降序")


  public SortDirectionEnum getSortDirection() {
    return sortDirection;
  }

  public void setSortDirection(SortDirectionEnum sortDirection) {
    this.sortDirection = sortDirection;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestBusChanceData apiRequestBusChanceData = (ApiRequestBusChanceData) o;
    return Objects.equals(this.pageSize, apiRequestBusChanceData.pageSize) &&
        Objects.equals(this.index, apiRequestBusChanceData.index) &&
        Objects.equals(this.searchKey, apiRequestBusChanceData.searchKey) &&
        Objects.equals(this.busType, apiRequestBusChanceData.busType) &&
        Objects.equals(this.isOpen, apiRequestBusChanceData.isOpen) &&
        Objects.equals(this.custLevelSearch, apiRequestBusChanceData.custLevelSearch) &&
        Objects.equals(this.relationTypeSearch, apiRequestBusChanceData.relationTypeSearch) &&
        Objects.equals(this.isServiceSearch, apiRequestBusChanceData.isServiceSearch) &&
        Objects.equals(this.sortBy, apiRequestBusChanceData.sortBy) &&
        Objects.equals(this.sortDirection, apiRequestBusChanceData.sortDirection);
  }

  @Override
  public int hashCode() {
    return Objects.hash(pageSize, index, searchKey, busType, isOpen, custLevelSearch, relationTypeSearch, isServiceSearch, sortBy, sortDirection);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestBusChanceData {\n");
    
    sb.append("    pageSize: ").append(toIndentedString(pageSize)).append("\n");
    sb.append("    index: ").append(toIndentedString(index)).append("\n");
    sb.append("    searchKey: ").append(toIndentedString(searchKey)).append("\n");
    sb.append("    busType: ").append(toIndentedString(busType)).append("\n");
    sb.append("    isOpen: ").append(toIndentedString(isOpen)).append("\n");
    sb.append("    custLevelSearch: ").append(toIndentedString(custLevelSearch)).append("\n");
    sb.append("    relationTypeSearch: ").append(toIndentedString(relationTypeSearch)).append("\n");
    sb.append("    isServiceSearch: ").append(toIndentedString(isServiceSearch)).append("\n");
    sb.append("    sortBy: ").append(toIndentedString(sortBy)).append("\n");
    sb.append("    sortDirection: ").append(toIndentedString(sortDirection)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

